package log;

public class StaticTest {

	public static String s1 = "111111111111";

	static {
		System.out.println("静态块");
		s1 = "********************";
	}
	
	public String s2 = "2222222222";
	
	StaticTest (String s) {
		System.out.println(s2);
		System.out.println(s1);
		this.s2 = s;
		System.out.println(s2);
	}
	
	/**
	 * main函数
	 * @author 张伟
	 * @param args
	 */
	public static void main(String[] args) {
//		StaticTest.showInfo();
		System.out.println(StaticTest.s1);
		StaticTest st = new StaticTest("-----------");
		StaticTest.showInfo(st);
	}

	public static void showInfo(StaticTest st) {
		System.out.println(s1);
		System.out.println(st.s2);
	}
	
	public static void showInfo() {
		System.out.println(s1);
//		System.out.println(st.s2);
	}
	
}
